/*
 * AppPlatformModel.java
 * classes : com.sohu.sohuvideo.models.AppPlatformModel
 * @author xiangyutian
 * V 4.5.0
 * Create at 2014-4-30 上午11:04:17
 */
package common.com.androidbase.datarequest;

import java.util.ArrayList;
import java.util.List;

/**
 * 第三方视频类
 *
 * @author xiangyutian <br/>
 *         create at 2014-4-30 上午11:04:17
 */
public class AppPlatformModel {

    public static final String DOMIAN_NAME_SOHU = "搜狐";
    public static final String DOMIAN_NAME_LETV = "乐视";
    public static final String DOMIAN_NAME_AIQIYI = "爱奇艺";
    public static final String DOMIAN_NAME_YOUKU = "优酷";
    public static final String DOMIAN_NAME_TUDOU = "土豆";
    public static final String DOMIAN_NAME_OTHER = "其他";

    public static final String DOMIAN_SOHU = "sohu";
    public static final String DOMIAN_LETV = "letv";
    public static final String DOMIAN_AIQIYI = "aiqiyi";
    public static final String DOMIAN_YOUKU = "youku";
    public static final String DOMIAN_TUDOU = "tudou";

    public static final int PLAT_ID_SOHU = 1;

    private String name;
    private String domain;
    private String img;
    private int id;
    private ArrayList<AppPlatformVideoModel> videos;

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public int getId() {
        return id;
    }

    public void setId(int domainId) {
        this.id = domainId;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domian) {
        this.domain = domian;
    }

    public String getName() {
        return name;
    }

    public void setName(String domainName) {
        this.name = domainName;
    }

    public List<AppPlatformVideoModel> getVideos() {
        return videos;
    }

    public void setVideos(ArrayList<AppPlatformVideoModel> videos) {
        this.videos = videos;
    }

    /***
     * 切换AppPlat 监听器
     *
     * @author SHUTAOXIANG
     */
    public static interface AppPlatChangedListener {
        void onAppPlatChanged(AppPlatformModel appPlat);
    }

    public boolean isSohuPlat() {
        return getId() == PLAT_ID_SOHU;
    }
}
